package com.starry.JavaEEStudy.Listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class CustomServletContextListenerImpl implements ServletContextListener{
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("ServletContextListener Started ..");
        //ServletContextListener.super.contextInitialized(sce); // 需要注释掉，否则报错
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("ServletContextListener Shut down ..");
        //ServletContextListener.super.contextDestroyed(sce);
    }
}
